package com.zwr.sheller.core.common;

public enum ExceptionCode {
    //此处写枚举错误
    PARAMETER("1000", "占位符"),
    PARAMETER_PASSING_EXCEPTION("1001","参数传递异常"),
    NO_MATCHING_RESULT("1002","没有匹配的结果"),
    INSERT_FAILED("1003","插入失败"),
    DELETE_FAILED("1004","删除失败"),
    UPDATE_FAILED("1005","更新失败"),
    NO_PHONE_AUTH("1006","手机号未授权"),
    ;

    private String code;
    private String message;

    ExceptionCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
